<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>{{$pageTitle}}-{{$site[title]}}</title>
<meta NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta name="Keywords" content="{{if $seokeywords}}{{$seokeywords}}{{else}}{{$site[seokeywords]}}{{/if}}" />
<meta name="Description" content="{{if $seodescription}}{{$seodescription}}{{else}}{{$site[seodescription]}}{{/if}}" />
<!--[if lt IE 9]>
	{{$this->Html->script(array('html5shiv.js','respond.min.js'))}}
<![endif]-->
{{$this->Html->meta('icon')}}

<?PHP echo $this->Combinator->less(); ?>


{{$this->Html->css(array('font-awesome.min.css',
	'ui-customer','jquery.jgrowl.css'))}}
{{$this->Html->script(array(
            'jquery/jquery.min.js',
            'jquery/jquery.cookie.js',        
            'i18n/language-zh-cn.js',
            'bootstrap.min.js',
            'jquery/jquery.jgrowl.min.js',
            'common.js', 'front.js',
            
        ));
}}
{{if Configure::read('Page.extracss') }}
<style>
{{Configure::read('Page.extracss')}}
</style>
{{/if}}
<!--[if lte IE 8]>
{{$this->Html->css(array(	
	'bootstrap-ie6.css',
))}}
{{$this->Html->script(array('jquery/jquery-migrate-1.2.1.min.js'))}}
<![endif]-->

{{if !empty($_SESSION['Auth']['Staff']) }}
<!-- 当为后台登陆后，才加载jquery ui，与模板编辑的js -->
{{$this->Html->css(array('edit_template',))}}
	
{{$this->Html->script(array(			
            'jquery/jquery-ui-1.10.3.custom.min.js',           
            'portlet.js', 
            'bootstrap-colorpicker.min.js',   
            'ckeditor/ckeditor.js',
            'jquery/validator.js',
            'swfupload/swfupload.js',
            'swfupload/swfupload.queue.js',
			'swfupload/swfupload.cookies.js',
            'swfupload/fileprogress.js',
            'swfupload/handlers.js',       
        ));
}}
<script type="text/javascript">
var viewFileName = "{{$viewfile_for_layout}}";
var current_controller = "{{$current_controller}}";
var current_model = "{{$current_model}}";
var current_url = "{{$current_model}}";
var current_action = "{{$current_action}}";
var current_pass = "{{implode('/',$current_pass)}}";
</script>
{{/if}}
<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
</head>
<body class="boxed">

{{if !empty($_SESSION['Auth']['Staff']) }}
<!-- 文件上传进度条 -->
<div class="flash ui-wedget" id="fsUploadProgress" style="position:absolute;display:none;width:210px;top:80px;right:30px; z-index: 10000000;">
</div> 
{{/if}}
{{template menus/bootstrap}}
<div id="header-breadcrumb" class="clearfix">
<div class="container clearfix" >
{{template Elements/navigation_header}}
</div>
</div>



<div id="maincontent" class="maincontent clearfix"> 
	<?php
	    $flash_msg =  $this->Session->flash();
	if($flash_msg){
		echo "<div class=\"container\" style=\"margin-top: 20px;\">$flash_msg</div>";
	}
	//注意#maincontent中，只包含一个'.container'，否则无法前台编辑模板可能会走样。多行的使用实现使用<div class="row"></div>。
	?>
  
    {{$content_for_layout}}
</div><!-- //end maincontent -->

{{template Elements/footer}}
